import request from '@/utils/request'

// 查询部门列表
export function listInvoiceDept(query) {
  return request({
    url: '/business/invoiceDept/list',
    method: 'get',
    params: query
  })
}

// 查询部门所有列表
export function listAllInvoiceDept(query) {
  return request({
    url: '/business/invoiceDept/listAll',
    method: 'get',
    params: query
  })
}

// 查询部门详细
export function getInvoiceDept(id) {
  return request({
    url: '/business/invoiceDept/getInfo/' + id,
    method: 'get'
  })
}

// 新增部门
export function addInvoiceDept(data) {
  return request({
    url: '/business/invoiceDept/add',
    method: 'post',
    data: data
  })
}

// 修改部门
export function updateInvoiceDept(data) {
  return request({
    url: '/business/invoiceDept/edit',
    method: 'post',
    data: data
  })
}

// 删除部门
export function delInvoiceDept(id) {
  return request({
    url: '/business/invoiceDept/remove/' + id,
    method: 'get'
  })
}
